package com.sisgh.jefdv1.core.jdbc.connection.factory;

import com.sisgh.jefdv1.core.jdbc.connection.properties.ConnectionProperties;

import java.sql.Connection;
import java.sql.SQLException;

/**
 * 链接工厂接口
 */
public interface ConnectionFactory {

    /**
     * 获取sql连接
     * @param cps
     * @return
     * @throws SQLException
     */
    Connection getConnection(ConnectionProperties cps) throws SQLException;

    String getDBType();
}
